//package com.zmn.plat.dubbo.impl.channel;
//
//import com.zmn.common.dto2.ResponseDTO;
//import com.zmn.common.utils.reflect.BeanMapper;
//import com.zmn.manager.common.database.annotation.ReadOnlyConnection;
//import com.zmn.plat.common.dto.channel.ChannelPromotionDIO;
//import com.zmn.plat.common.dto.channel.ChannelPromotionDRO;
//import com.zmn.plat.dubbo.interfaces.channel.ChannelPromotionListRemoteService;
//import com.zmn.plat.dubbo.utils.DubboConsts;
//import com.zmn.plat.model.entity.channel.promotion.ChannelPromotion;
//import com.zmn.plat.model.entity.channel.promotion.ChannelPromotionQuery;
//import com.zmn.plat.services.interfaces.channel.promotion.ChannelPromotionService;
//import com.zmn.plat.utils.bean.BeanCopyUtils;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.dubbo.config.annotation.Service;
//
//import javax.annotation.Resource;
//import java.util.List;
//
///**
// * 渠道推广配置服务远程接口
// *
// * @author yangshuangping
// * @since 2021-9-25 15:38:57
// */
//@Slf4j
//@Service(version = DubboConsts.INTERFACE_VERSION, validation = "true")
//public class ChannelPromotionListRemoteServiceImpl implements ChannelPromotionListRemoteService {
//
//    @Resource
//    private ChannelPromotionService channelPromotionService;
//
//    @Override
//    @ReadOnlyConnection
//    public ResponseDTO<List<ChannelPromotionDRO>> listByDIO(ChannelPromotionDIO dio) {
//        log.info("ChannelListRemoteServiceImpl.listByDIO参数channelDIO：{}", dio);
//        try {
//            ChannelPromotionQuery query = new ChannelPromotionQuery();
//            BeanCopyUtils.copyProperties(dio, query);
//            List<ChannelPromotion> list = channelPromotionService.listByQuery(query);
//            List<ChannelPromotionDRO> droList = BeanMapper.mapList(list, ChannelPromotionDRO.class);
//            return ResponseDTO.success(droList);
//        } catch (Exception e) {
//            return ResponseDTO.fail("系统错误! 调用失败!");
//        }
//    }
//
//}
